<div id="tiga_ba">
	<div id="tiga_baa">Edit PPK</div>
	<div id="tiga_bab"></div>
	<div class="clear"></div>
</div>
            
<?php
	$id=$_GET['id'];
	$sql="select * from ppk where id_ppk = '$id'";
	$qry=mysql_query($sql);
	$hasil=mysql_fetch_array($qry);
?>
<form action="utama.php?module=mod_ppk&act=update" onsubmit="return gsValidate('nama|alamat','Nama PPK Harus Diisi|Alamat PPK Harus Diisi','required|required');" method="post" enctype="multipart/form-data">
	<table style="margin: 10px 15px 10px 15px;">
		<tr>
			<td>Nama PPK</td>
			<td>&nbsp;</td>
			<td>
				<input name="nama" type="text" class="input2" id="nama" maxlength="50" value="<?php echo $hasil['nama']?>"/>
				<input name="id_ppk" type="hidden" id="id_ppk" value="<?php echo $hasil['id_ppk']?>" />
			</td>
		</tr>
		<tr>
			<td>Jenis PPK</td>
			<td>&nbsp;</td>
			<td>
				<select name="jenis" class="input2">
					<?php
						$jenis = mysql_query("select * from jenis_ppk");
						while($j=mysql_fetch_array($jenis)){
							if($j['id_jenis'] == $hasil['id_jenis']){
								$s = "selected";
							}else{
								$s = "";
							}
							echo "<option value=$j[id_jenis] $s>$j[jenis]</option>";
						}
					?>
				</select>
			</td>
		</tr>
		<tr>
			<td>Alamat</td>
			<td>&nbsp;</td>
			<td>
				<input name="alamat" type="text" class="input" id="alamat" maxlength="255" value="<?php echo $hasil['alamat']?>"/>
			</td>
		</tr>
		<tr>
			<td class="top">Keterangan</td>
			<td>&nbsp;</td>
			<td>
				<textarea name="keterangan" id="keterangan" class="area"><?php echo $hasil['keterangan']?></textarea>
			</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
			<td><input name="submit" type="submit" class="button" value="Update" /></td>
		</tr>
	</table>
</form>		
            
        